
module.exports = {
    pages: {
        pc: {
            entry: "src/entries/entryPC.ts",
            title: "index",
            filename: "index.html"
        },
        mobile: {
            entry: "src/entries/entryMobile.ts",
            title: "index",
            filename: "mobile.html"
        },
        admin: {
            entry: "src/entries/entryAdmin.ts",
            title: "index",
            filename: "admin.html"
        }
    },
    // webpack-dev-server 相关配置
    devServer: {
        open: process.platform === 'darwin',
        host: '127.0.0.1',
        port: 9999,
        https: false,
        hotOnly: false,
        proxy: {
            '/api':{
                target:"https://tantsz.com/"
            }
        }, // 设置代理
        before: app => {}
    },

}
